﻿
/**
 * AUTO GENERATE BY UI EDITOR.
 * WARNING: DO NOT MODIFY THIS FILE,MAY CAUSE CODE LOST.
 * ATTENTION: onStart 等UI脚本自带函数不可改写为异步执行，有需求的异步逻辑请使用函数封装，通过函数接口在内部使用
 * UI: UI/BagItem.ui
*/



@UIBind('UI/BagItem.ui')
export default class BagItem_Generate extends UIScript {
		private img_bg_Internal: mw.Image
	public get img_bg(): mw.Image {
		if(!this.img_bg_Internal&&this.uiWidgetBase) {
			this.img_bg_Internal = this.uiWidgetBase.findChildByPath('RootCanvas/img_bg') as mw.Image
		}
		return this.img_bg_Internal
	}
	private img_icon_Internal: mw.Image
	public get img_icon(): mw.Image {
		if(!this.img_icon_Internal&&this.uiWidgetBase) {
			this.img_icon_Internal = this.uiWidgetBase.findChildByPath('RootCanvas/img_icon') as mw.Image
		}
		return this.img_icon_Internal
	}
	private txt_name_Internal: mw.TextBlock
	public get txt_name(): mw.TextBlock {
		if(!this.txt_name_Internal&&this.uiWidgetBase) {
			this.txt_name_Internal = this.uiWidgetBase.findChildByPath('RootCanvas/txt_name') as mw.TextBlock
		}
		return this.txt_name_Internal
	}
	private btn_func_Internal: mw.Button
	public get btn_func(): mw.Button {
		if(!this.btn_func_Internal&&this.uiWidgetBase) {
			this.btn_func_Internal = this.uiWidgetBase.findChildByPath('RootCanvas/btn_func') as mw.Button
		}
		return this.btn_func_Internal
	}
	private img_selected_Internal: mw.Image
	public get img_selected(): mw.Image {
		if(!this.img_selected_Internal&&this.uiWidgetBase) {
			this.img_selected_Internal = this.uiWidgetBase.findChildByPath('RootCanvas/img_selected') as mw.Image
		}
		return this.img_selected_Internal
	}
	private img_equipped_Internal: mw.Image
	public get img_equipped(): mw.Image {
		if(!this.img_equipped_Internal&&this.uiWidgetBase) {
			this.img_equipped_Internal = this.uiWidgetBase.findChildByPath('RootCanvas/img_equipped') as mw.Image
		}
		return this.img_equipped_Internal
	}


 
	/**
	* onStart 之前触发一次
	*/
	protected onAwake() {
	}
	 
}
 